package com.gjy.pd.composite;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-05-29 15:57:43
 */
public abstract class Component {

    public void add(Component component) {
        throw new IllegalArgumentException();
    }

    public void delete(Component component) {
        throw new IllegalArgumentException();
    }

    /**
     * Leaf 节点内部必须空实现
     */
    public Component getChild(int i) {
        throw new IllegalArgumentException();
    }

    public abstract void operation();
}
